<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <title>单选控件</title>
</head>

<body>
    <form action="#" method="get">
        <!-- name相同的单选按钮属于一组 -->
        性别：男<input name="sex" type="radio" value="1" checked>
        女<input name="sex" type="radio" value="2">
        <br>
        <input type="submit" value="提交数据">
    </form>
</body>

</html>